import config from "@/config";
import http from "@/utils/request";
// import qs from "qs";

export default {
    //字典
    treeData: {
		url: `${config.API_URL}/sySysDict/validTreeData`,
		name: "字典树形菜单",
		post: async function (params) {
			return await http.post(this.url, params);
		},
	},
	list: {
		url: `${config.API_URL}/sySysDict/list`,
		name: "字典列表",
		get: async function (params) {
			return await http.get(this.url, params);
		},
	},
    save: {
		url: `${config.API_URL}/sySysDict/save`,
		name: "字典保存",
		post: async function (params) {
			return await http.post(this.url, params);
		},
	},
    details: {
		url: `${config.API_URL}/sySysDict/details`,
		name: "字典详情",
		get: async function (params) {
			return await http.get(this.url, params);
		},
	},
    delete: {
		url: `${config.API_URL}/sySysDict/delete`,
		name: "字典删除",
		get: async function (params) {
			return await http.get(this.url, params);
		},
	},
};
